package org.keyyond.ms.scheduler.service.impl;

import org.keyyond.ms.core.util.HttpUtil;
import org.keyyond.ms.scheduler.service.NCJobService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;

@Service
@RefreshScope
public class NCJobServiceImple implements NCJobService{
	
	@Value("${authParam}")
	private String authParam;
	
	@Value("${esbPrefix}")
	private String esbPrefix;
	
	@Override
	public String sendBusinessPartnerToNc() {
		String result=null;
		result=HttpUtil.sendPost("http://10.196.10.34:8010/ncws/sendBusinessPartnerToNc", "{}", "UTF-8");
		return result;
	}

	@Override
	public String doSendCgddToNc() {
		String result=null;
		result=HttpUtil.sendPost("http://10.196.10.34:8010/ncws/sendCgddToNc", "{}", "UTF-8");
		return result;
	}

	@Override
	public String doSendXsddToNc() {
		String result=null;
		result=HttpUtil.sendPost("http://10.196.10.34:8010/ncws/sendXsddToNc", "{}", "UTF-8");
		return result;
	}
	
}
